<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta name="Description" content="Simple dotProject Style" />
	<meta http-equiv="Content-Type"
		content="text/html;charset=<?=isset( $locale_char_set ) ? $locale_char_set : 'UTF-8'?>"/>
	<title><?=dPgetConfig( 'page_title' )?></title>
	<link rel="icon" href="images/favicon.ico" type="image/x-icon"> 
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
	<link rel="stylesheet" type="text/css" href="style/default/main.css" media="all" />
	<link rel="stylesheet" type="text/css" href="style/default/calendar.css" media="all" />
	<link rel="stylesheet" type="text/css" href="style/tree.css" media="all" />

	<!--[if IE 6]>
	<link rel="stylesheet" type="text/css" href="style/default/ie6.css" media="all" />
	<![endif]-->

	<!--[if IE]>
	<link rel="stylesheet" type="text/css" href="style/default/ie.css" media="all" />
	<![endif]-->

	<?php $AppUI->loadJS(); ?>

</head>
<body class="mainpage" onresize="Contents.resize()" onload="Contents.setup()">
<!--[if lte IE 6.5]>
<script>
document.body.onresize = null;
</script>
<div onresize="Contents.resize()" style="position: absolute; left: 0px; top: 0px; width: 100%; height: 0px"></div>
<div onresize="Contents.resize()" style="position: absolute; left: 0px; top: 0px; width: 0px; height: 100%"></div>
<![endif]-->
<div id="idGlass" style="display:none; visibility: hidden; overflow: hidden">
<!--[if lte IE 6.5]><iframe src="dummy.html"></iframe><![endif]-->
</div>
<div id="idShadow" style="display:none; visibility: hidden">&nbsp;</div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" height="100%">
<tr>
	<td colspan="100%" id="idTopContents">
		<table class="nav" width="100%" cellpadding="0" cellspacing="0">
		<tr>
		<td nowrap width="100%">&nbsp;
			<a href="<?=$dPconfig['base_url']?>"><?=$dPconfig['company_name']?></a>
		</td>
		<td width="16px"><img src="images/user.gif"></td>
		<td nowrap width="34%"><?=$AppUI->user_first_name.' '.$AppUI->user_last_name?></td>
		<td width="32px">&nbsp;</td>
		<td width="33%" align="right">
		<table cellpadding="0" cellspacing="6">
		<tr height="22px">
			<td align="center"><a href="index.php?m=admin&a=viewuser&user_id=<?=$AppUI->user_id?>"><img src="images/vcard.gif" title="<?=$AppUI->_('My Info')?>"/></a></td>
			<td align="center"><a href="#"><img src="images/stickies.gif" title="<?=$AppUI->_('Notes')?>"/></a></td>
			<td align="center"><a href="#"><img src="images/manual.gif" title="<?=$AppUI->_('Help')?>"/></a></td>
			<td align="center"><img src="images/blank.gif" width="10" height="1"/></td>
			<td align="center"><a href="index.php?logout=-1"><img src="images/close.gif" title="<?=$AppUI->_('Logout')?>"/></a></td>
		</tr>
		</table>
		</td>
		</td>
		</tr>
		</table>
	</td>
</tr>
<tr>
<td valign="top" class="toolbar">
<?php
	$nav = $AppUI->getMenuModules();
	if ($_SESSION['Toolbar[show]'] == 'off') {
		$style = 'style="display: none"';
		$handler = 'expand.gif';
		$title = 'Expand';
	}
	else {
		$style = '';
		$handler = 'collapse.gif';
		$title = 'Collapse';
	}
	$top = isset($_SESSION['Toolbar[top]']) ? ' style="top: '.$_SESSION['Toolbar[top]'].'px"' : '';
?>
	<table id="idToolbar" cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td rowspan="3" <?=$style?> style="padding: 2px"><img src="images/blank.gif" width="3" height="1"></td>
			<td id="idToolbarUp" <?=$style?> class="scroll_no" onmousedown="Toolbar('idToolbar').scroll(this)">&nbsp;</td>
			<td class="clickable" rowspan="3" valign="top" style="padding: 2px" onclick="Toolbar('idToolbar').toggle()">
				<img id="idToolbarHandler" title="<?=$title?>" src="images/<?=$handler?>">
			</td>
		</tr>
		<tr>
			<td <?=$style?> align="center">
			<div id="idToolbarContainer">
			<div id="idToolbarSlider"<?=$top?>>
				<table id="idToolbarTray" border="0" cellpadding="2" cellspacing="2" width="100%">
				<?php
				foreach ($nav as $module) {
					$dir = $module['mod_directory'];
					if (!getDenyRead( $dir )) {
						$icon = $module['mod_ui_icon'];
						$name = $AppUI->_($module['mod_ui_name']);
						$sel = '';
						if ($m == $dir) {
							define('DP_CURRENT_MODULE_ICON', $icon);
							$name = '<b>'.$name.'</b>';
							$sel = ' id="idSelected"';
						}
				?>
					<tr<?=$sel?> onclick="go('index.php?m=<?=$dir?>')">
						<td align="center" valign="middle" class="clsBtnOff">
							<?=showFixedSizeImage('modules/'.$dir.'/images/'.$icon)?><br/><?=$name?>
						</td>
					</tr>
				<?
					}
				}
				?>
				</table>
				</div>
			</div>
			</td>
		</tr>
		<tr>
			<td id="idToolbarDn" <?=$style?> class="scroll_dn" onmousedown="Toolbar('idToolbar').scroll(this)">&nbsp;</td>
		</tr>
	</table>
</td>

<td valign="top" align="left" width="100%">
<div id="idMainContents">
	<div id="idInnerContents" style="width: 100%">
